#ifndef CLICKEDLABEL_H
#define CLICKEDLABEL_H

#include <QLabel>
#include <QObject>

class ClickedLabel : public QLabel
{
    Q_OBJECT
public:
    enum State { NoSelected, Selected };

public:
    ClickedLabel(QWidget *parent = nullptr);
    void setSelected();
    void setNoSelected();
    State getState();

private:
    QString _state;

protected:
    virtual void mousePressEvent(QMouseEvent *event) override;
signals:
    void sig_del(QString text);
    void sig_changeState();

protected:
    virtual void paintEvent(QPaintEvent *event) override;
};

#endif // CLICKEDLABEL_H
